package com.jiefeng.manager.table;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.util.Date;

/**
 *订单信息
 */
public class OrderInfo {
    /** 订单信息**/
    private Integer id;
    //商户号
    private String merchantId;
    //子商户号
    private String subMerchantId;
    //条形码号
    private String barCode;
    //订单号
    private String orderNo;
    //订单请求交易流水号
    private String orderReqNo;
    //渠道
    private String channel;
    //业务类型
    private String busiType;
    //订单日期
    private Date orderDate;
    //订单金额(单位:分)
    private String orderAmt;
    //产品金额(单位:分)
    private String productAmt;
    //附加金额(单位:分)
    private String attachAmt;
    //商品信息
    private String goodsName;
    //门店号
    private String storeId;
    //后台返回地址
    private String backUrl;
    //分账信息
    private String ledgerDetail;
    //支付状态
    private String payStatus;

    /**翼支付下单信息**/
    //翼支付下单时间
    private Date bestPlaceDate;
    //翼支付下单返回码
    private String bestPlaceCode;
    //翼支付下单返回描述
    private String bestPlaceMsg;

    /**翼支付支付信息**/
    //翼支付网关交易流水号
    private String bestTransNo;
    //翼支付支付成功时间
    private Date bestPaySucDate;

    /**捷峰商户信息**/
    //捷峰商户号
    private String jfMerchantId;
    //捷峰子商户号
    private String jfSubMerchantId;
    //备注
    private String remark;
    //创建时间
    private Date createdDate;
    //更新时间
    private Date modifiedDate;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId == null ? null : merchantId.trim();
    }

    public String getSubMerchantId() {
        return subMerchantId;
    }

    public void setSubMerchantId(String subMerchantId) {
        this.subMerchantId = subMerchantId == null ? null : subMerchantId.trim();
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode == null ? null : barCode.trim();
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo == null ? null : orderNo.trim();
    }

    public String getOrderReqNo() {
        return orderReqNo;
    }

    public void setOrderReqNo(String orderReqNo) {
        this.orderReqNo = orderReqNo == null ? null : orderReqNo.trim();
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel == null ? null : channel.trim();
    }

    public String getBusiType() {
        return busiType;
    }

    public void setBusiType(String busiType) {
        this.busiType = busiType == null ? null : busiType.trim();
    }

    public Date getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    public String getOrderAmt() {
        return orderAmt;
    }

    public void setOrderAmt(String orderAmt) {
        this.orderAmt = orderAmt == null ? null : orderAmt.trim();
    }

    public String getProductAmt() {
        return productAmt;
    }

    public void setProductAmt(String productAmt) {
        this.productAmt = productAmt == null ? null : productAmt.trim();
    }

    public String getAttachAmt() {
        return attachAmt;
    }

    public void setAttachAmt(String attachAmt) {
        this.attachAmt = attachAmt == null ? null : attachAmt.trim();
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName == null ? null : goodsName.trim();
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId == null ? null : storeId.trim();
    }

    public String getBackUrl() {
        return backUrl;
    }

    public void setBackUrl(String backUrl) {
        this.backUrl = backUrl == null ? null : backUrl.trim();
    }

    public String getLedgerDetail() {
        return ledgerDetail;
    }

    public void setLedgerDetail(String ledgerDetail) {
        this.ledgerDetail = ledgerDetail == null ? null : ledgerDetail.trim();
    }

    public String getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(String payStatus) {
        this.payStatus = payStatus == null ? null : payStatus.trim();
    }

    public String getJfMerchantId() {
        return jfMerchantId;
    }

    public void setJfMerchantId(String jfMerchantId) {
        this.jfMerchantId = jfMerchantId == null ? null : jfMerchantId.trim();
    }

    public String getJfSubMerchantId() {
        return jfSubMerchantId;
    }

    public void setJfSubMerchantId(String jfSubMerchantId) {
        this.jfSubMerchantId = jfSubMerchantId == null ? null : jfSubMerchantId.trim();
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public Date getModifiedDate() {
        return modifiedDate;
    }

    public void setModifiedDate(Date modifiedDate) {
        this.modifiedDate = modifiedDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getBestPlaceDate() {
        return bestPlaceDate;
    }

    public void setBestPlaceDate(Date bestPlaceDate) {
        this.bestPlaceDate = bestPlaceDate;
    }

    public String getBestPlaceCode() {
        return bestPlaceCode;
    }

    public void setBestPlaceCode(String bestPlaceCode) {
        this.bestPlaceCode = bestPlaceCode;
    }

    public String getBestPlaceMsg() {
        return bestPlaceMsg;
    }

    public void setBestPlaceMsg(String bestPlaceMsg) {
        this.bestPlaceMsg = bestPlaceMsg;
    }

    public String getBestTransNo() {
        return bestTransNo;
    }

    public void setBestTransNo(String bestTransNo) {
        this.bestTransNo = bestTransNo;
    }

    public Date getBestPaySucDate() {
        return bestPaySucDate;
    }

    public void setBestPaySucDate(Date bestPaySucDate) {
        this.bestPaySucDate = bestPaySucDate;
    }

    @Override
    public String toString(){
        return ReflectionToStringBuilder.toString(this, ToStringStyle.DEFAULT_STYLE);
    }
}